home *** CD-ROM | disk | FTP | other *** search
- Subject: Replies to Views questions
- Sent: 7/17/96 9:52 AM
- Received: 7/17/96 10:01 AM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- This is a bunch of replies to view questions.
-
-
-
- ---------------------------------------------------------------------------
-
- >Hello ODF types.
- >
- >Consider the following:
- >
- >FW_CPopupMenu* myProcesses = FW_NEW(FW_CPopupMenu, ( ev, this,
- >kValueTypeID, viewRect, kProcessMenuID, FW_CString(), 0, 1,
- >popupFixedWidth, FW_kHelvetica12 ) );
- >
- >Several questions:
- >1) there is no apparent way to construct pop-ups programmatically?
-
- You can add or remove menu items with Mac calls. See the section "Adding
- and Removing Menu Items" in the engineering note "Using Controls". (the
- popup must already exists, but
- you can leave 1 menu item that you delete later)
-
- >2) passing a resource ID for a Macintosh Menu is not portable?
-
- That's true. We used this implementation for ODF 1 for the sake of time.
- When ODF is ready on Windows we will have a portable Popup API.
-
- >3) popupFixedWidth does NOT work; nothing shows, if I set it back to zero,
- >I get a dynamic width pop-up. this a bug or mea culpa?
- >
-
- I tried this with the Form sample (changing the popup variation field to
- 1 in
- Views.fr) and it works.
-
- ---------------------------------------------------------------------------
-
-
- >A couple weeks ago someone posted a question about ordering subviews and I
- >haven't seen a response to it yet. I also need to draw my frame's subviews
- >in order of their view IDs instead of the order in which they were created.
- >(FW_CSuperView ignores the view IDs when drawing and simply traverses its
- >fSubViews list to draw each subview.)
- >
- >Is there any way to prioritize the drawing of my subviews (preferably by
- >using view IDs)?. For example, it would be great if FW_CSuperView had a
- >SortSubViews() routine.
- >
- >Thanks,
- >Itrat.
-
- Do you want to suggest to him to override FW_CSuperView::HandleDraw
- in his class to change the ordering of subviews drawing?
-
- Also, couldn't he create the subviews in the right order in the 1st place?
-
- Implementing a SortSubViews method would be hard in ODF 1 because
- DeleteSubview has problems if I remember well.
-
- ---------------------------------------------------------------------------
-
-
- >My part is based on ODF Container, and I want to implement my own scroller.
- >Currenlty a default scroller is read in from my View.fr resource. How do I
- >replace it with my own scroller. I looked at FW_CFrame::AdoptScroller and
- >it will not replace an existing scroller.
- >
- >-Neal
-
- The only solution in ODF 1 is to implement his own scroller resource in
- Views.fr
- (or remove the Container's scroller and create his owb by program)
- Once a scroller is created it's not possible to change it.
-
- ---------------------------------------------------------------------------
-
-
- >Is there any (other than DoIdle()) for a CEditView to notify its receiver
- >that the content has changed?
- >
- >If it is not the case, it would be logical since it inherits of FW_MNotifier.
- >
- >Thanks,
- >
- >Paul.
-
- I am sure there was a good reason to make FW_CEditView derive from
- FW_MNotifier
- but I can't remember now! (I may use this in Form)
- The general issue of adding a content model for edit views is something to
- address later.
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-
-